<?php

    function create_menu_header()
    {
         $html="
         ";
         echo $html;
    }

    function create_header()
    {
         $html="
         ";
         echo $html;
    }

    function create_menu()
    {
        $linksBox = "";

        $linksBox = "{$linksBox}<li><a href=\"index.php?p=1\" style=\"background-image: url(img/menu/menuBOUTEILLE.png);\"></a></li>";
        $linksBox = "{$linksBox}<li><a href=\"index.php?p=2\" style=\"background-image: url(img/menu/menuATTITUDE.png);\"></a></li>";
        $linksBox = "{$linksBox}<li><a href=\"index.php?p=3\" style=\"background-image: url(img/menu/menuDJ.png);\"></a></li>";

        $linksBox = "<li><a href=\"index.php?p=0\" style=\"background-image: url(img/menu/menuACCUEIL.png);\"></a></li>{$linksBox}";

        $html ="
            <div class=\"box\">
            <h2></h2>
                <div class=\"inbox\">
                    <center>
                        <ul>
                            {$linksBox}
                        </ul>
                    </center>
                </div>
            </div>
            ";

        echo $html;
    }

    function create_contenu($id_page)
    {
            switch($id_page)
            {
                    case 0: include "contenu/acceuil.php";
                                    break;
                    case 1: include "contenu/video/video.php";
                                    break;
                    case 2: include "contenu/patattitude.php";
                                    break;
                    case 3: include "contenu/djleguen.php";
                                    break;
                    case 4: include "contenu/video/addVideoForm.php";
                                    break;

                    case 16112006: include "contenu/video/videoAdmin.php";
                                    break;
                    default : include "contenu/acceuil.php";
            }
    }

    function create_footer()
    {
            $html = "<!-- CSS MADE -->
            ";
            echo $html;
    }

    function set_javascript($script)
    {
            echo "<script type=\"text/javascript\" src=\"js/{$script}\"></script>";
    }

    /* fonction à utiliser dans le header pour ajouter une feuille de style */
    function set_css($css)
    {
            echo "<link rel='stylesheet' media='screen' type='text/css' title='style' href='css/{$css}' />";
    }

    /* fonction à utiliser dans le header pour ajouter une feuille de style et permet de preciser a quel type de media l'appliquer */
    function set_css_2($css,$media)
    {
            echo "<link rel='stylesheet' media='{$media}' type='text/css' title='style' href='css/{$css}' />";
    }

    function set_title($title)
    {
            echo "<title>{$title}</title>";
    }
?>
